/ Assembly List / LJCNetCommon / HTMLBuilder / GetMeta

Namespace - LJCNetCommon


Parameters
name - The name value.
content - The content value.
textState - The current text state values.

Returns

The <meta> element.

Syntax

C#
public String GetMeta(String name, String content, TextState textState)

Gets a meta element.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var content = "width=device-width initial-scale=1";
var result = hb.Meta("viewport", content, textState);

// result:
// <meta name="viewport" content="width=device-width initial-scale=1" />

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.